package com.jysz.webcore.ssh.entity;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.search.annotations.DocumentId;

import com.google.gson.annotations.Expose;


/**
 * @author kacarich email:javaengine@outlook.com
 *
 */
@MappedSuperclass
public abstract class AbstractBaseEntity<PK extends Serializable> extends BizEntity<PK> {

	private static final long serialVersionUID = 1L;

	@Expose
	private PK id;
	
	public AbstractBaseEntity() {
		
	}
	
	@Id
	@GeneratedValue
	@DocumentId
	public PK getId() {
		return id;
	}
	public void setId(PK id) {
		this.id = id;
	}
	

}
